package org.dding.core;

import org.dding.core.manager.IModuleManager;
import org.dding.core.manager.IServiceManager;
import org.dding.core.manager.ModuleManager;
import org.dding.core.manager.ServiceManager;

public class ContainerFactory {

	static IModuleManager module = null;
	static IServiceManager service = null;

	public static synchronized IModuleManager createModuleManager(final String moduleRoot) {
		if (module == null) {
			module = new ModuleManager(moduleRoot);
		}
		module.addServiceManager(new ServiceManager("service"));

		return module;
	}
}
